package com.atguigu.service.service_msm.utils;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantPropertiesUtils implements InitializingBean {
    @Value("${spring.mail.username}")
    private String username;

    public static String USER_NAME;

    @Override
    public void afterPropertiesSet() throws Exception {
        USER_NAME = username;

    }
}
